package com.risenb.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Permission implements Serializable {
	
	private static final long serialVersionUID = 7834665900041554028L;

	private Integer id;//权限id

	private String title;//权限名称

	private String detail;

	private Integer status;//权限状态

	private Integer parentid;//父权限id

	private Integer operator;

	private Date operatime;

	private Integer ismenu;//权限类型  0：左侧菜单 1：功能菜单

	List<Permission> chirlds;

	private Integer sort;// 排序
	
	private String url;//后台方法地址
	
	
	//视图字段
	private Integer parentSort;

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<Permission> getChirlds() {
		return chirlds;
	}

	public void setChirlds(List<Permission> chirlds) {
		this.chirlds = chirlds;
	}

	public Integer getIsmenu() {
		return ismenu;
	}

	public void setIsmenu(Integer ismenu) {
		this.ismenu = ismenu;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title == null ? null : title.trim();
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail == null ? null : detail.trim();
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getParentid() {
		return parentid;
	}

	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}

	public Integer getOperator() {
		return operator;
	}

	public void setOperator(Integer operator) {
		this.operator = operator;
	}

	public Date getOperatime() {
		return operatime;
	}

	public void setOperatime(Date operatime) {
		this.operatime = operatime;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getParentSort() {
		return parentSort;
	}

	public void setParentSort(Integer parentSort) {
		this.parentSort = parentSort;
	}
	
}